﻿<html>

<head>

<!--COMMON :include style and javascript code-->
${inc:/action/pub/common}

<title>录入设施明细、结算表</title>

</head>

<body onmouseup="hidInputValidatorTip(3);">
${inc:/action/pub/header}

<center>
<div id=tabs>
    <ul>
        <li onclick="changeLiStyle(this);">
            <a  
                onmouseover="javascript:window.status='';return true;" 
                onmouseout="javascript:window.status='';return true;" 
                href='#' 
                onclick='JavaScript:detailIFrame("hjmx");'>
                <span id="formTitleFilter">户籍明细</span>
            </a>
        </li>
        <li onclick="changeLiStyle(this);">
            <a  
                onmouseover="javascript:window.status='';return true;" 
                onmouseout="javascript:window.status='';return true;" 
                href='#' 
                onclick='JavaScript:detailIFrame("ynss");'>
                <span id="formTitleFilter">院内设施</span>
            </a>
        </li>
        <li onclick="changeLiStyle(this);">
            <a  
                onmouseover="javascript:window.status='';return true;" 
                onmouseout="javascript:window.status='';return true;" 
                href='#' 
                onclick='JavaScript:detailIFrame("jsmx");'>
                <span id="formTitleFilter">结算明细</span>
            </a>
        </li>
    </ul>
	<div id="shenheFlag" style="display:none;">
		<input type="button" class="cmd" value="审核通过" onclick="shenheDangan(2)">
		<input type="button" class="cmd" value="审核不通过" onclick="shenheDangan(3)">
	</div>
    <div id='hline'></div>
</div>
<iframe id="detail" name="detail" marginwidth="0" scrolling="auto" frameborder="0" style="height:0%;width:100%;visibility:hidden">
</iframe>
</center>

</body>

</html>
<script language="javascript">
function detailIFrame(type_name)
{
	document.getElementById("detail").style.visibility = "visible"; 
	document.getElementById("detail").style.height = "100%"; 
    var url= "";
    if (type_name == "hjmx")
    {
        url = "${def:context}/action/dq/master_detail/crud?id=${fld:id}&type=archives";
    }else if (type_name == "ynss")
    {
        url = "${def:context}${def:actionroot}/tabs/sheshi/crud?id=${fld:id}";
    }else if (type_name == "jsmx")
    {
		url = "${def:context}${def:actionroot}/tabs/jiesuan/crud?master_tuid=${fld:id}";
    }
	frames['detail'].location.href =url+"&random="+Math.random();
}

function hiddenIFrame()
{
	document.getElementById("detail").style.visibility = "hidden"; 
	document.getElementById("detail").style.height = "0%"; 
}

function shenheDangan(state){
	ajaxCall(httpMethod="GET", 
			uri="${def:actionroot}/shenhe" + "?id=${fld:archives_tuid}&archives_status=" + state, 
			divResponse=null, 
			divProgress=null, 
			formName=null, 
			afterResponseFn=null, 
			onErrorFn=null);
}

window.onload = function(){
	if("${fld:flag}" == "shenhe"){
		document.getElementById("shenheFlag").style.display = "inline";
	}
}
</script>